<?php 
include('header.php');
include('menu.php');
include('config.php');
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Manage User</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/ajaxFunction_manage_user.js"></script>

</head>
<body>

<table  border="0" cellspacing="1"  id="table21" style=" padding:10px" >
<tr><td colspan="9">
</td>
</tr>	
<tr>
  <td colspan="9" bgcolor="#C5D8EB" height="25" align="center"><font face="Verdana" color="#006699" style="font-size: 8.5pt"><b>&nbsp;MANAGE USER</b></font></td>
</tr>
<tr>
<td colspan="9" bgcolor="#F0F0F0" height="25" align="right"><font face="Verdana"  style=" color:#000000;font-size: 8.5pt"><b>&nbsp;Search</b>&nbsp;<input type="text" onChange="search_user(this.value,1);" /></font></td>
</tr>
												


<tr>
<td width="41" height="31" bgcolor="#F0F0F0">
<strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;S.No.</font></strong></td>
<td width="138" height="31" bgcolor="#F0F0F0">
<strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;Name</font></strong></td>
<td width="143" height="31" bgcolor="#F0F0F0">
 <strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;User Type</font></strong></td>
<td width="245" height="31" bgcolor="#F0F0F0">
 <strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;Email Id</font></strong></td>
<td width="67" height="31" bgcolor="#F0F0F0">
  <strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;Edit</font></strong></td>
<td width="84" height="31" bgcolor="#F0F0F0">
 <strong><font style="font-size: 8.5pt" face="Verdana" color="#003366">
&nbsp;Action</font></strong></td>
</tr>
<tbody id="main_content" style="color:#000000; font-family:verdana; font-size:8.5pt;">
</tbody>
</table>
<div id="loader">
<img src="images/ajax-loader-big.gif" />
</div>


<form name="admin" id="edit_user"  method="post"  onSubmit="return createuser()">
<input type="hidden" name="user_id" id="user_id" />
<table width="708" height="60%" border="0" cellspacing="0"  id="table21" style=" padding:10px"  >

<tr>
  <td colspan="3" background="images/title.gif" height="25" align="center">
	<font face="Verdana" color="#ffffff" style="font-size: 8.5pt"><b>EDIT USER</b></font></td>
	<td background="images/title.gif" align="right"><a href="javascript:void(0);" onClick="close_edit();" ><img src="images/b_drop.png" /></a></td>
</tr>


<tr bgcolor="#eeeeee">
	<td colspan="10" align="left" valign="top">	<h2><b>
	  <font color="#336699" face="Verdana" size="2"></font></b></h2></td>
	</tr>
														<tr bgcolor="#eeeeee">
															<td width="109" align="left">&nbsp;</td>
															<td width="271" align="left"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Name</font></td>
															<td width="281" align="left">
														  <input type="text" name="name" id="name" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" onBlur="alphabet(this)">														  </td>
															<td width="34">&nbsp;</td>
														</tr>
														<tr bgcolor="#eeeeee">
															<td width="109">&nbsp;</td>
															<td width="271" align="left">
																<font style="font-size: 8.5pt" face="Verdana" color="#000000">User Type</font>															</td>
															<td align="left">
																
	<?php
	//include('../administrator/config.php');
	?>
				<select size="1" name="usertype" id="usertype" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" onChange="check_usertype(this.value);">
				<option selected value="0">Select Login Type</option>													
				<?php	
				$u_type =array();
				foreach($type as $key=>$val)
				{
		  			 echo "<option value=$key>$val</option>";
	  			 }
				?>
				</select></td><td width="34">&nbsp;</td>
														</tr>
				
					<tr bgcolor="#eeeeee"><td width="109">&nbsp;</td>
					<td colspan="3" align="center">
				<select size="1" name="zone" id="zone" onChange="load_circle(this.value);" class="user_type" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" hidden>
				<option selected value="0">Select Zone:</option>
				<?php
				$query = mysql_query("SELECT * FROM tbl_lookup_zone WHERE status = 1");
					while($data = mysql_fetch_assoc($query)){
					echo "<option value='".$data['zone_id']."'>".$data['zone_name']."</option>";
					}
				?>												
				</select>
				
				<select size="1" name="circle" id="circle" onChange="load_division(this.value);" class="user_type" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" hidden>
				<option selected value="0">Select Circle:</option>													
				</select>
				
				<select size="1" name="division" id="division" onChange="load_sub_div(this.value);" class="user_type" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" hidden>
				<option selected value="0">Select Division:</option>													
				</select>
				
				<select size="1" name="sub_division" id="sub_division" class="user_type" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" hidden>
				<option selected value="0">Select Sub Division:</option>													
				</select>

				
				
				
				</td></tr>

				
				
									
				<tr bgcolor="#eeeeee"><td width="109">&nbsp;</td>
				<td width="271" align="left"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Designation</font>															</td>
				<td align="left">
				<select size="1" name="designation" id="designation" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px">
				<option selected value="0">Select Designation</option>													
				<?php	
				$desi = mysql_query("SELECT * FROM tbl_lookup_designation WHERE status = 1");
				
				while($data = mysql_fetch_assoc($desi)) {
				echo "<option value = '".$data['desi']."'>".$data['designation']."</option>";
				

				}
				
				?>
				</select></td><td width="34">&nbsp;</td>
				</tr>
				
			
				
				<tr bgcolor="#eeeeee"><td width="109">&nbsp;</td>
				<td width="271" align="left"><font style="font-size: 8.5pt" face="Verdana" color="#000000">Login Id</font>															</td>
				<td align="left"><input type="text" name="login_id" id="login_id" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px" readonly="readonly" />															</td>
															<td width="34">&nbsp;</td>
	</tr>
														<tr bgcolor="#eeeeee">
															<td width="109">&nbsp;</td>
															<td width="271" align="left">
																
																
																<font face="Verdana" style="font-size: 8.5pt" color="#000000">Email Id</font>															</td>
															<td align="left">
																<input type="text" name="emailid" id="emailid" size="38" style="font-size: 8pt; font-family: Verdana; border:1px solid black;  border-width: 1px">															</td>
															<td width="34">&nbsp;</td>
														</tr>
														
														<tr bgcolor="#eeeeee">
															<td width="109">&nbsp;</td>
															<td width="271">&nbsp;</td>
															<td align="left">
																<input type="submit" value="Submit" name="submit" style="border:1px solid #000000; font-size: 8pt; font-family: Verdana; " >															</td>
															<td width="34">&nbsp;</td>
														</tr>
														<tr bgcolor="#eeeeee">
															<td width="109">&nbsp;</td>
															<td width="271">&nbsp;</td>
															<td>&nbsp;</td>
															<td width="34">&nbsp;</td>
														</tr>
  </table>
												
											
								
</form>
						
	
													
													


</body>
</html>
